package com.onenine.chat.commons;


import android.widget.ImageView;

public interface ImageLoader {

    /**
     * Load image into avatar's ImageView.
     *
     * @param avatarImageView Avatar's ImageView.
     * @param string          A file path, or a uri or picUrl.
     */
    void loadAvatarImage(ImageView avatarImageView, String string);

    /**
     * Load image into image gif_message's ImageView.
     *
     * @param imageView Image gif_message's ImageView.
     * @param string    A file path, or a uri or picUrl.
     * @param extra     extra data
     */
    void loadImage(ImageView imageView, String string, Object extra);

    /**
     * Load video to video gif_message's image cover.
     *
     * @param imageCover Video gif_message's image cover
     * @param uri        Local path or picUrl.
     */
    void loadVideo(ImageView imageCover, String uri);
}
